package zhieasy.cn.service.found;

import org.springframework.stereotype.Service;
import zhieasy.cn.common.utils.StorageUtil;
import zhieasy.cn.common.vo.ResultVO;

/**
 * @author DaHang
 * @date 2020/8/1 15:38
 * 这个类是用来写关于失物招领对象存储一些service方法的
 */
@Service
public class FoundStorageMethod {
    private final StorageUtil objectStorageUtil;

    public FoundStorageMethod(StorageUtil objectStorageUtil) {
        this.objectStorageUtil = objectStorageUtil;
    }

    /**
     * 获取失物招领的url+token
     * @return url+token
     */
    public ResultVO getTokenAndUrlOfFound(String articleId){
        return objectStorageUtil.getTokenAndUrlInFound(articleId);
    }

}
